package com.example.demo.controller;

import com.example.demo.app.AppUtils;
import com.example.demo.service.DataProcess;
import com.example.demo.tools.ExcelUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {

    @Autowired
    DataProcess dataProcess;


    @RequestMapping("/test")
    public void test(){
        ExcelUtils.readExcelContent();
    }

    @RequestMapping("/test2")
    public Object test2(){
        return AppUtils.menusList;
    }

    @RequestMapping("/test3")
    public Object test3(){
        Object o = dataProcess.processOrder();
        return o;
    }
}
